/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spiele.tetromino.state;

import spiele.block.Block;
import spiele.tetromino.Tetromino;

/**
 *
 * @author martin
 */
public final class O implements Tetromino{
  private final int _col,
                    _row;
  
  private O(int col, int row){
    _col=col;
    _row=row;
  }
  
  @Override
  public Block getAt(int col, int row) {
    switch(col+row*4){
      case 5:
        return Block.Full;
      case 6:
        return Block.Full;
      case 9:
        return Block.Full;
      case 10:
        return Block.Full;
    }
    return Block.Empty;
  }

  @Override
  public int width() {
    return 4;
  }

  @Override
  public int heigth() {
    return 4;
  }

}
